﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Admin.master" AutoEventWireup="true" CodeBehind="PayrollSummaryPage.aspx.cs" Inherits="Legazpi.Payroll.Web.Admin.Payroll.PayrollSummaryPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="leftContent" runat="server">
    
            <div class="grid_12">      
                   <div class="module">
                     <h2><span>Filter</span></h2>
                        
                     <div class="module-body">                       
                            <p>
                                <label>Sector:</label>
                                <asp:TextBox ID="SectorFilterTxt" runat="server" CssClass="input-medium"></asp:TextBox>
                                <asp:HiddenField ID="SectortId" runat="server" />
                            </p>
                            <p>
                                <label>Employee:</label>
                                <asp:TextBox ID="EmployeeFilterTxt" runat="server" CssClass="input-medium"></asp:TextBox>
                                <asp:HiddenField ID="EmployeeId" runat="server" />
                            </p>
                            <fieldset>
                                <asp:Button id="FilterBtn" runat="server" Text="Filter Grid" CssClass="submit-green" />                                                                                                            
                            </fieldset>
                        
                        
                     </div> <!-- End .module-body -->
                </div> <!-- End .module -->
                <div style="clear:both;"></div>
                    <div class="module">
                         <h2><span>Payroll Summary Table</span></h2>
                     
                         <div class="module-body">                                                         
                         <asp:Repeater ID="repeater" runat="server" onitemdatabound="repeater_ItemDataBound" OnItemCommand="repeater_ItemCommand">                            
                            <HeaderTemplate>
                                <table width="100%" border="0" class="tablesorter">
                                    <thead>
                                        <tr>                                                              
                                            <th rowspan="2" style="vertical-align:middle;text-align:center">Code</th>                                      
                                            <th rowspan="2" style="vertical-align:middle;text-align:center">Name</th>
                                            <th rowspan="2" style="vertical-align:middle;text-align:center">Sector</th>
                                            <th rowspan="2" style="vertical-align:middle;text-align:center">Position</th>
                                            <th colspan="2" style="text-align:center">Earnings</th>
                                            <th colspan="5" style="text-align:center">Deductions</th>
                                            <th rowspan="2" style="vertical-align:middle;text-align:center">Gross</th>
                                            <th rowspan="2" style="vertical-align:middle;text-align:center">Net</th>                                            
                                            <th rowspan="2" width="2%" ></th>
                                        </tr>
                                        <tr>
                                            <%--Earnings--%>
                                            <th>Cover Up</th>
                                            <th>Adjustment</th>
                                            <%--Deductions--%>
                                            <th>SSS</th>
                                            <th>Tax</th>
                                            <th>PH</th>
                                            <th>Loan</th>                                                                                             
                                            <th style="text-align:center">Total</th>                                 
                                        </tr>                                                                                                                         
                                    </thead>
                                    <tbody>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="odd">                                                                        
                                    <td><asp:Literal runat="server" ID="EmpCodeLiteral"></asp:Literal></td>                                        
                                    <td><asp:Literal runat="server" ID="EmpNameLiteral"></asp:Literal></td>                                        
                                    <td><asp:Literal runat="server" ID="SectorLiteral"></asp:Literal></td>                                        
                                    <td><asp:Literal runat="server" ID="PositionLiteral"></asp:Literal></td>                                        
                                    <td><asp:Literal runat="server" ID="CoverUpLiteral"></asp:Literal></td>                                                                                                                                                      
                                    <td>test</td>    
                                    <td>test</td>    
                                    <td>test</td>
                                    <td>test</td>
                                    <td>test</td>
                                    <td>test</td>
                                    <td><asp:Literal runat="server" ID="GrossLiteral"></asp:Literal></td>                                        
                                    <td><asp:Literal runat="server" ID="NetpayLiteral"></asp:Literal></td>                                                                                                                    
                                    <td>                                        
                                        <asp:ImageButton ID="SaveLinkBtn" runat="server" ImageUrl="/images/file_explore.png" Width="16" Height="16" AlternateText="update" CommandName="update" CommandArgument=<%# Eval("Id")%> />                                        
                                    </td>
                                </tr>                            
                            </ItemTemplate>
                            <AlternatingItemTemplate>
                                <tr class="even">                                                                             
                                    <td><asp:Literal runat="server" ID="EmpCodeLiteral"></asp:Literal></td>                                        
                                    <td><asp:Literal runat="server" ID="EmpNameLiteral"></asp:Literal></td>                                        
                                    <td><asp:Literal runat="server" ID="SectorLiteral"></asp:Literal></td>                                        
                                    <td><asp:Literal runat="server" ID="PositionLiteral"></asp:Literal></td>                                        
                                    <td><asp:Literal runat="server" ID="CoverUpLiteral"></asp:Literal></td>                                        
                                    <td>test</td>                                                                                                    
                                    <td>test</td>                                        
                                    <td>test</td>
                                    <td>test</td>
                                    <td>test</td>
                                    <td>test</td>
                                    <td><asp:Literal runat="server" ID="GrossLiteral"></asp:Literal></td>                                        
                                    <td><asp:Literal runat="server" ID="NetpayLiteral"></asp:Literal></td>                                                                                                                                 
                                    <td>                                        
                                        <asp:ImageButton ID="SaveLinkBtn" runat="server" ImageUrl="/images/file_explore.png" Width="16" Height="16" AlternateText="update" CommandName="update" CommandArgument=<%# Eval("Id")%> />                                        
                                    </td>
                                </tr>                            
                            </AlternatingItemTemplate>
                            <FooterTemplate>
                                    </tbody>
                                </table>
                            </FooterTemplate>
                         </asp:Repeater>                            
                                                   
                         </div> <!-- End .module-body -->

                    </div>  <!-- End .module -->        		   
                                                            
            </div>
</asp:Content>